import React, { Component } from 'react';
import './style.css'
import { Redirect } from 'react-router-dom';
import request from '../../request';
// import ReactEcharts from 'echarts-for-react';


class KeyWord extends Component{

  componentDidMount() {
    request.get('/api/isLogin').then(res => {
      const data: boolean = res.data;
      if (!data) {
        this.setState({
          isLogin: false,
          loading: false
        });
      } else {
        this.setState({
          loading: false
        });
      }
    });

    request.get('/api/showWenCaiData').then(res => {
      const data = res.data;
      if (data) {
        this.setState({ data });
      }
      console.log(this.state)
    });
  }

  render() {
    return (
      <div>
        hot
      </div>
    )
  }
}

export default KeyWord
